void processData(int funcID, int arguments[], int scope, XBeeAddress64 sender) 
{
  String timeString = "[ " + hour() + ":" + minute() + ":" + second() + " ] \t";
  switch (funcID) 
  {
    case 0: // Sensor Value
      if (scope == hashGroup("405")) {
        println(timeString + "Sensor Value: " + arguments[0]);
      }
      else {
        println("Received Out of Scope Message, scope is " + scope);
      }
    break;
    case 1: // Timed Sending
        println(timeString + "Arduino Timer: " + arguments[0] + " seconds");
    break;
    case 255: // The maximum number of functions 
        println(timeString + "Function " + funcID + " received.. wanna do something with it? (" + arguments.length + " arguments)");
    break;
    
    //If we don't know the function
    default:
      print(millis()+" Received unknown Function: " + funcID + " with arguments: " );
      for (int i = 0; i < arguments.length; i++) 
      {
        print(arguments[i] + ","); 
      }
      println(" from node ' " + getNodeName(sender) + "' in scope " + scope);
    break;
  }
}
